/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.clinic.patient.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 单表生成Entity
 * @author lizhengheng
 * @version 2018-03-19
 */
public class PtPatient extends DataEntity<PtPatient> {
	
	private static final long serialVersionUID = 1L;
	private String hospitalMark;		// hospital_mark
	private String patientId;		// patient_id
	private String patientCode;		// patient_code
	private String patientName;		// patient_name
	private String patientSex;		// patient_sex
	private String patientAge;		// patient_age
	private String ageNuit;		// age_nuit
	private Date patientBarth;		// patient_barth
	private String patientMarrge;		// patient_marrge
	private String patientNation;		// patient_nation
	private String patientOcc;		// patient_occ
	private String patientBlood;		// patient_blood
	private String patientIdcard;		// patient_idcard
	private String patientAddress;		// patient_address
	private String patientTel;		// patient_tel
	private String patientDwadd;		// patient_dwadd
	private String patientDwtel;		// patient_dwtel
	private Date opDate;		// op_date
	private String opMark;		// op_mark
	private String regCount;		// reg_count
	private String patientType;		// patient_type
	private String regType;		// reg_type
	private Date regTime;		// reg_time
	private String regDept;		// reg_dept
	private String regDoctor;		// reg_doctor
	private String diagnosis;		// diagnosis
	private String diagnosis1;		// diagnosis_1
	private String diagnosis2;		// diagnosis_2
	private String diagnosis3;		// diagnosis_3
	private String illness;		// illness
	private String csymptoms;		// csymptoms
	private String past;		// past
	private String anaphy;		// anaphy
	private String alcohol;		// alcohol
	private String costTotal;		// cost_total
	private String insFlag;		// ins_flag
	private String insCard;		// ins_card
	private Date morbTime;		// morb_time
	private String effFlag;		// eff_flag
	
	public PtPatient() {
		super();
	}

	public PtPatient(String id){
		super(id);
	}

	@Length(min=1, max=15, message="hospital_mark长度必须介于 1 和 15 之间")
	public String getHospitalMark() {
		return hospitalMark;
	}

	public void setHospitalMark(String hospitalMark) {
		this.hospitalMark = hospitalMark;
	}
	
	@Length(min=1, max=50, message="patient_id长度必须介于 1 和 50 之间")
	public String getPatientId() {
		return patientId;
	}

	public void setPatientId(String patientId) {
		this.patientId = patientId;
	}
	
	@Length(min=1, max=50, message="patient_code长度必须介于 1 和 50 之间")
	public String getPatientCode() {
		return patientCode;
	}

	public void setPatientCode(String patientCode) {
		this.patientCode = patientCode;
	}
	
	@Length(min=0, max=50, message="patient_name长度必须介于 0 和 50 之间")
	public String getPatientName() {
		return patientName;
	}

	public void setPatientName(String patientName) {
		this.patientName = patientName;
	}
	
	@Length(min=0, max=5, message="patient_sex长度必须介于 0 和 5 之间")
	public String getPatientSex() {
		return patientSex;
	}

	public void setPatientSex(String patientSex) {
		this.patientSex = patientSex;
	}
	
	public String getPatientAge() {
		return patientAge;
	}

	public void setPatientAge(String patientAge) {
		this.patientAge = patientAge;
	}
	
	@Length(min=0, max=5, message="age_nuit长度必须介于 0 和 5 之间")
	public String getAgeNuit() {
		return ageNuit;
	}

	public void setAgeNuit(String ageNuit) {
		this.ageNuit = ageNuit;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getPatientBarth() {
		return patientBarth;
	}

	public void setPatientBarth(Date patientBarth) {
		this.patientBarth = patientBarth;
	}
	
	@Length(min=0, max=10, message="patient_marrge长度必须介于 0 和 10 之间")
	public String getPatientMarrge() {
		return patientMarrge;
	}

	public void setPatientMarrge(String patientMarrge) {
		this.patientMarrge = patientMarrge;
	}
	
	@Length(min=0, max=10, message="patient_nation长度必须介于 0 和 10 之间")
	public String getPatientNation() {
		return patientNation;
	}

	public void setPatientNation(String patientNation) {
		this.patientNation = patientNation;
	}
	
	@Length(min=0, max=10, message="patient_occ长度必须介于 0 和 10 之间")
	public String getPatientOcc() {
		return patientOcc;
	}

	public void setPatientOcc(String patientOcc) {
		this.patientOcc = patientOcc;
	}
	
	@Length(min=0, max=10, message="patient_blood长度必须介于 0 和 10 之间")
	public String getPatientBlood() {
		return patientBlood;
	}

	public void setPatientBlood(String patientBlood) {
		this.patientBlood = patientBlood;
	}
	
	@Length(min=0, max=20, message="patient_idcard长度必须介于 0 和 20 之间")
	public String getPatientIdcard() {
		return patientIdcard;
	}

	public void setPatientIdcard(String patientIdcard) {
		this.patientIdcard = patientIdcard;
	}
	
	@Length(min=0, max=255, message="patient_address长度必须介于 0 和 255 之间")
	public String getPatientAddress() {
		return patientAddress;
	}

	public void setPatientAddress(String patientAddress) {
		this.patientAddress = patientAddress;
	}
	
	@Length(min=0, max=20, message="patient_tel长度必须介于 0 和 20 之间")
	public String getPatientTel() {
		return patientTel;
	}

	public void setPatientTel(String patientTel) {
		this.patientTel = patientTel;
	}
	
	@Length(min=0, max=255, message="patient_dwadd长度必须介于 0 和 255 之间")
	public String getPatientDwadd() {
		return patientDwadd;
	}

	public void setPatientDwadd(String patientDwadd) {
		this.patientDwadd = patientDwadd;
	}
	
	@Length(min=0, max=20, message="patient_dwtel长度必须介于 0 和 20 之间")
	public String getPatientDwtel() {
		return patientDwtel;
	}

	public void setPatientDwtel(String patientDwtel) {
		this.patientDwtel = patientDwtel;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getOpDate() {
		return opDate;
	}

	public void setOpDate(Date opDate) {
		this.opDate = opDate;
	}
	
	@Length(min=0, max=50, message="op_mark长度必须介于 0 和 50 之间")
	public String getOpMark() {
		return opMark;
	}

	public void setOpMark(String opMark) {
		this.opMark = opMark;
	}
	
	@Length(min=0, max=11, message="reg_count长度必须介于 0 和 11 之间")
	public String getRegCount() {
		return regCount;
	}

	public void setRegCount(String regCount) {
		this.regCount = regCount;
	}
	
	@Length(min=0, max=10, message="patient_type长度必须介于 0 和 10 之间")
	public String getPatientType() {
		return patientType;
	}

	public void setPatientType(String patientType) {
		this.patientType = patientType;
	}
	
	@Length(min=0, max=10, message="reg_type长度必须介于 0 和 10 之间")
	public String getRegType() {
		return regType;
	}

	public void setRegType(String regType) {
		this.regType = regType;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getRegTime() {
		return regTime;
	}

	public void setRegTime(Date regTime) {
		this.regTime = regTime;
	}
	
	@Length(min=0, max=50, message="reg_dept长度必须介于 0 和 50 之间")
	public String getRegDept() {
		return regDept;
	}

	public void setRegDept(String regDept) {
		this.regDept = regDept;
	}
	
	@Length(min=0, max=50, message="reg_doctor长度必须介于 0 和 50 之间")
	public String getRegDoctor() {
		return regDoctor;
	}

	public void setRegDoctor(String regDoctor) {
		this.regDoctor = regDoctor;
	}
	
	@Length(min=0, max=255, message="diagnosis长度必须介于 0 和 255 之间")
	public String getDiagnosis() {
		return diagnosis;
	}

	public void setDiagnosis(String diagnosis) {
		this.diagnosis = diagnosis;
	}
	
	@Length(min=0, max=255, message="diagnosis_1长度必须介于 0 和 255 之间")
	public String getDiagnosis1() {
		return diagnosis1;
	}

	public void setDiagnosis1(String diagnosis1) {
		this.diagnosis1 = diagnosis1;
	}
	
	@Length(min=0, max=255, message="diagnosis_2长度必须介于 0 和 255 之间")
	public String getDiagnosis2() {
		return diagnosis2;
	}

	public void setDiagnosis2(String diagnosis2) {
		this.diagnosis2 = diagnosis2;
	}
	
	@Length(min=0, max=255, message="diagnosis_3长度必须介于 0 和 255 之间")
	public String getDiagnosis3() {
		return diagnosis3;
	}

	public void setDiagnosis3(String diagnosis3) {
		this.diagnosis3 = diagnosis3;
	}
	
	@Length(min=0, max=255, message="illness长度必须介于 0 和 255 之间")
	public String getIllness() {
		return illness;
	}

	public void setIllness(String illness) {
		this.illness = illness;
	}
	
	@Length(min=0, max=255, message="csymptoms长度必须介于 0 和 255 之间")
	public String getCsymptoms() {
		return csymptoms;
	}

	public void setCsymptoms(String csymptoms) {
		this.csymptoms = csymptoms;
	}
	
	@Length(min=0, max=255, message="past长度必须介于 0 和 255 之间")
	public String getPast() {
		return past;
	}

	public void setPast(String past) {
		this.past = past;
	}
	
	@Length(min=0, max=255, message="anaphy长度必须介于 0 和 255 之间")
	public String getAnaphy() {
		return anaphy;
	}

	public void setAnaphy(String anaphy) {
		this.anaphy = anaphy;
	}
	
	@Length(min=0, max=255, message="alcohol长度必须介于 0 和 255 之间")
	public String getAlcohol() {
		return alcohol;
	}

	public void setAlcohol(String alcohol) {
		this.alcohol = alcohol;
	}
	
	public String getCostTotal() {
		return costTotal;
	}

	public void setCostTotal(String costTotal) {
		this.costTotal = costTotal;
	}
	
	@Length(min=0, max=11, message="ins_flag长度必须介于 0 和 11 之间")
	public String getInsFlag() {
		return insFlag;
	}

	public void setInsFlag(String insFlag) {
		this.insFlag = insFlag;
	}
	
	@Length(min=0, max=50, message="ins_card长度必须介于 0 和 50 之间")
	public String getInsCard() {
		return insCard;
	}

	public void setInsCard(String insCard) {
		this.insCard = insCard;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getMorbTime() {
		return morbTime;
	}

	public void setMorbTime(Date morbTime) {
		this.morbTime = morbTime;
	}
	
	@Length(min=1, max=11, message="eff_flag长度必须介于 1 和 11 之间")
	public String getEffFlag() {
		return effFlag;
	}

	public void setEffFlag(String effFlag) {
		this.effFlag = effFlag;
	}
	
}